
age = int(input("请输入年龄:"))
rate = int(input("请输入安静心率:"))
sex = input("请输入性别male/female：")
const = 0
if sex == "male":
    const = 220
else:
    const = 210
r1 = (const - age - rate) * 0.6 + rate
r2 = (const - age - rate) * 0.8 + rate
print(str(r1) + "~" + str(r2))




